Check for nil value in compare task.