Fix validation of commands which does not have any parameters.