Fix null pointer exception in crafting event.