add a nullcheck for gregtech weirdness