Guard against non-objects being passed to keyValueFilter