Fix crash on corrupted nbt