Avoid JS notices on AJAX responses that are not flash messages