fixed a nullpointer case when getting items from ic2 api