use user_id or owner_id when matching exports (Case:43724)

This is not the most elegant fix but it is a minimal change that works. The behavior is still odd when the case gets reassigned by a web user into a group, but that's a separate issue.