Fixed NPE from ParaPenguin/SporkPGM#29