fix NPE if nonencoded factory url has no valid parameters at all