EZP-21118: Tweaked DefaultRouter param loading

The configResolver was used too early in a condition,
and was instanciating the legacy DB too early.