BZ-1069117 - Modal with NPE shown after comleting a Human Task in task list

(cherry picked from commit 8414dbdbba35764cb5ba583dba9ebf80a87556eb)