Added checking for undefined objects in fields to searchFilter.