Quick fix for /gmode command to prevent server crash with bad arguments (such as a char instead of a digit)