Attempted fix for NPE on inventory click and Horse click.