fix gen(null) not using the parameters from the incoming url
res #373