Fix case where parse_cmd is passed no commands