[parser] fix "no param still valid" bug

When commands requiring params like "add", "delete" lacks param, valid
is return as true instead of false.

This is fixed with this commit.