fix(task/detail): adjust null check

related to CAM-3138