CORE-2243 fixed create task api call

@PurnimaGS  add the null check validation