Adds check for damaged/broken nbt

should fix #428