* helm-regexp.el (helm-moccur-action): Use when instead of unless.