Reset last_error on a new request.