Engineer of quake-prone building deregistered: ‘The public could have been at risk’