A Company carrying out construction work to convert an eight storey former Ford office block into 384 flats has been prosecuted for safety failings that put many at risk.