The discovery of a bat has delayed plans to demolish a derelict former primary school to make way for a housing development.