Fix rake task so it runs cleanly on development (#1060)
Fix rake task so it runs cleanly on development (#1060)

* test check inside loop

* wip

* remove redundant assignment
ministryofjustice/correspondence_tool_staff,ministryofjustice/correspondence_tool_staff,ministryofjustice/correspondence_tool_staff,ministryofjustice/correspondence_tool_staff,ministryofjustice/correspondence_tool_staff