In search_records, only apply conditions if they exist

Allows arrays to be returned by get_raw_records, as long as filters aren't applied