Move test for empty command into parse function.
Authored by: oddegamra 2013-02-21
Parent: [r869]
Child: [r871]