BZ-1103970 - UnsupportedOperationException when TaskService.getTasksAssignedAsPotentialOwner

(cherry picked from commit c797e0da98d5baba9adbbd34a7b3dcacdda5da76)