Fixes JS error with _format=js in HtmlApiFilter.