Ensure `where` handles `properties` with `undefined` properties.