fixed crash with hasAd and the legacy ad provider