Fix issue with applied filters: remove check_filters; add look-up of few records instead of one to get full set of attributes for given query; fix query_rewrite to use few records instead of one. Changes are for ussue #4201