commands: check for empty rev before passing to scmutil.unhidehashlikerevs

Authored by pulkit.