Better security for player actions

Changed several play actions to check if some arguments are null,
reducing unexplained null pointer exceptions.