Fix for #4314 Wrong URL when search sub-category by tag if SEF is on

https://github.com/joomla/joomla-cms/issues/4314