Fix error in check for undefined/null player parameters

Whoops, this should have been in my previous PR... sorry!