* helm.el (helm-add-action-to-source): Check for action attr before type
  in or form.