Fixes a couple NPEs when clicked inventory is null