This is an TT issue with default list context on this template line: [% IF query.param(name _ '_op') == '=' || !query.param(name _ '_op') %] I am not sure if passing query to a template is a good idea anyway.
Just for reference: https://template-toolkit.org/docs/modules/Template/Stash/Context.html