Every encroaching projection which is permitted by the local authority shall be so constructed that its presence is not essential to the structural stability of the building to which it is attached:

Provided that this section shall not apply to foundations permitted by the local authority to encroach.