Fix assignment to wrong variable

This caused the page to always display an empty list of tags. Follow up
fix on commit 0d9c5e799ce58a8632678979e395025a0ebeb0ec.

Fixes #16340