Fix for AttributeError: 'FailedQueueItem' object has no attribute 'ep_obj'