Exclude areas where Drupal doesn't support bottom js.

From #6234.
When a form submits and tells the overlay to close itself, instead of rendering the form again, or redirecting to some other page, overlay sends an empty page with the javascript commands necessary to close the overlay.