Update filter.js

Supports returning properties that are null or undefined.