Prevent crash when using tools without nbt