Revert "Fixed async response to return error 500 if the task_id is not valid."

This reverts commit de3b1655e5b38febfc3bcb77057faacc8069d98e.