A man who breached community orders he was given after stealing radiators from a former nursing home has avoided jail.