Correctly find filter values

After upgrading to 2.2.21, filters weren't displayed anymore.
I'm not sure about potential collateral damages of this patch, but at least it works for my mongoose setup.
Please advise if it needs tuning.