Correct code for checking task type in hook_pre_hosting_task so that code does not trigger on platform verify.

Signed-off-by: Shai Sachs <ssachs@ngpvan.com>