Fix some invalid commands crashing the server.