Fix error in check for undefined/null player parameters