FIX: keep tag filter value when changing the category dropdown. (PR #11065)

Previously, while filtering the topics by tag, selecting a category loses the selected tag value.

GitHub

A test for this would be nice.

@vinothkannans feel free to add a test in a followup PR