Fixed null pointer when typing /setmaterial while holding a block