handle ticket deletion in case ticket is a string

Checkmate encountered this error on Sandbox.

https://rpm.newrelic.com/accounts/8460/applications/839497/traced_errors/1176561940

The cause is unclear to me, and I'm not sure if this is the right way to fix it.

any thoughts on this?