BZ-1082508 - NPE when I use task escalation in my process

(cherry picked from commit 58c9d1c091d193f131888d147cff1d869cc9e099)
JBPM-4278/BZ-1082091 - ClassCastException for ConnectTimeout REST WorkItem/Service Task input parameter

(cherry picked from commit 4480d0fdc70a9cb0d28b5ac1594ee050d4eaacab)