Added detection for corrupt TileEntities. Fixes #1518

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

This was based on my 1.6 commit
MinecraftPortCentral/Cauldron@051136266c53aaadbad96b42fdd94cedc2b16f29