After upgrade from 6.4 to 6.5 we get the following warning when loading a dashboard consisting of some pie and heatmap visualisations

Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments:
[0] _isAMomentObject: true, _isUTC: false, _useUTC: false, _l: undefined, _i: now-4h, _f: undefined, _strict: undefined, _locale: [object Object]
Error
at Function.createFromInputFallback (http://kibana.xxxx.local:5601/bundles/vendors.bundle.js:208:161744)
at Yt (http://kibana.xxxx.local:5601/bundles/vendors.bundle.js:208:179695)
at Ot (http://kibana.xxxx.local:5601/bundles/vendors.bundle.js:208:180406)
at Tt (http://kibana.xxxx.local:5601/bundles/vendors.bundle.js:208:180488)
at n (http://kibana.xxxx.local:5601/bundles/vendors.bundle.js:208:158585)
at Function.convertTimeToUTCString (http://kibana.xxxx.local:5601/bundles/commons.bundle.js:3:397275)
at DashboardStateManager.handleTimeChange (http://kibana.xxxx.local:5601/bundles/commons.bundle.js:3:2898432)
at controller (http://kibana.xxxx.local:5601/bundles/commons.bundle.js:3:2882333)
at Object.invoke (http://kibana.xxxx.local:5601/bundles/vendors.bundle.js:277:53092)
at $controllerInit (http://kibana.xxxx.local:5601/bundles/vendors.bundle.js:277:120876)
at nodeLinkFn (http://kibana.xxxx.local:5601/bundles/vendors.bundle.js:277:99972)
at compositeLinkFn (http://kibana.xxxx.local:5601/bundles/vendors.bundle.js:277:85277)
at publicLinkFn (http://kibana.xxxx.local:5601/bundles/vendors.bundle.js:277:82884)
at Object.link (http://kibana.xxxx.local:5601/bundles/vendors.bundle.js:304:7516)
at http://kibana.xxxx.local:5601/bundles/vendors.bundle.js:277:11954
at invokeLinkFn (http://kibana.xxxx.local:5601/bundles/vendors.bundle.js:277:114094)

malformed filter agg params, missing "query" on input

Then when clicking in the pie visualization to further apply filters nothing happens and we get this error on the console.

I think that's a different issue. @flalar Please create an issue for that on GitHub. Please also narrow down which of the visualizations on the dashboard is throwing that and attach the saved object of that visualization.