Skin not existing queries.

A few times (should be a native Magento bug) not existing queries submitted to prepare search results so added sanity check to prevent FK errors. Native Magento does not generate the FK exception but saves query into "catalogsearch_query" table with no results so no reason to keep unsaved queries at all.