Add additional check for UserAgentListener.