Fix server error when status.task_info is undefined

We need to check if status.task_info exist before trying to use any of its
attributes.