Fix the bug "sending query to all nodes for no route param specified cases"