Fix task render on error

When a server error occurs, task processing should still
continue.  Handle the error case in the ajax call.