Do not throw an exception when filtering on null

closes #410