Fix NPE when setting after calling configure().userAgent(String).