Fix NPE at getOpenInvnetoryName