Fixed NPE with nothing in inventory