Issue #2007790 by codycraven: Fix out of page ad causes JS error.