Prevent NPE

I haven't tested this, so I don't know if it's an actual fix, or even needed. Apparently, calling hasBar(Player) is throwing an NPE.