[NXCM-5213] Use task.getTask().getClass() to determine class of active task

Signed-off-by: Alin Dreghiciu <adreghiciu@gmail.com>