mw.Debug.profile: Tweak support check to handle PhantomJS