core: setTaskType according to TaskHandler

Change-Id: I142a098f081808b99a4e23c1b5cd01ad00da4fdb
Signed-off-by: Federico Simoncelli <fsimonce@redhat.com>