getSearchQuery will return null if the search widget is set to an empty string. Set they query to an empty string if that is the case, otherwise the old query will get used potentially.
#MBL-10282 Fixed