command: Fix possible null dereference in rarch_cmd_free

Free called on null pointers is OK, but if it's ever null and it hits this conditional, it will be a null pointer dereference.
Merge pull request #985 from lioncash/free

command: Fix possible null dereference in rarch_cmd_free