Added detection for corrupt TileEntities. Fixes #1228

Corrupted TileEntities will now be removed automatically if detected. The
details of the TE will be printed to terminal to help debug the issue.

* fixed another respawn bug with certain mods