Avoid NPE that could arrise due to NPC plugins etc.