* helm.el (helm-add-action-to-source): Fix when source have type attr and no action attr.