Is it legally permissible for an owner / occupier to demolish a dangerous building?

Yes, this can be arranged, although it will be necessary to demonstrate to the local authority that there are exceptional circumstances involved.