CORE-4350: added some validation to the permanently-delete-workflow service that was present in the previous implementation