Fixed async response to return error 500 if the task_id is not valid.
See ticket number #49