Add the function to detect the return value of start_which_task(), in order to prevent the system error.

Signed-off-by: Shanjin Yang <sjyang@credosemi.com>