[Added] check for taskStart and taskFinish functions being nil in
task.lua

Change-Id: I75210cf1bcb99e1171128b9125d13801790a132d