Hot fix to guard against advert JS error

/cc @kelvin-chappell