Fix bug in needPrivateBrowsingWarning()