add params properly when using wildcard

fix #8071
Yes sorry you are right, I didn't see that the params variable was a parameter passed in and therefore need to be updated and was just thinking about the params map in the node that would be returned.