Improving error message handling for rule source based rule actions.

+review REVIEW-5248