Fixed #21962 -- Added escape_html flag to ErrorDict.as_json()