Only burn the building if still in level

Resolves #2216.