A man has been given a suspended sentence after he carried out unsafe work on an extension to his own home in Manchester.