Restore mistakenly-deleted utility function `getUpdatedQueryString`

... so searches from plot detail page will work again