Adding rescue clause for failed CI task

Prevent the generator from failing if it is unable to remove a test
factory.

HYDRASIR-417 #close

JIRA References:
https://jira.duraspace.org/browse/HYDRASIR-417
https://jira.duraspace.org/browse/HYDRASIR-275