fix UnboundLocalError that can occur in mark_errors() when the service returns a parse error