Test showing incorrect subnav links in Charts.html

Charts.html uses a saved search from the session to create links
even if a Query is passed in. It should use the Query when
provided.
Use Query when passed to create subnav links on Charts.html

Charts.html was using the search saved in the session even
when a Query was passed in. This caused incorrect links when
using multiple tabs, looking at search results in one tab, then
looking at a chart in another tab. The session search from the
other tab would be used when creating the Edit Search, Advanced,
etc. links.
Merge branch '4.0/use-query-param-in-charts-subnav' into 4.0-trunk