fix bug where we can not get the right Itemid for category route
The Itemid of view for parent category can not be taken because
the active menu Itemid has been used instead