Issue 3444258 : Validate rule before calling getParentEntity
requested to merge issue/smart_date-3444258:3444258-validate-rules-before-getParentEntity into 4.1.x
Validate rule before calling getParentEntity; add Drush command to prune invalid rules