fix and/not/or filters

An nil pointer dereference could occur when passing filters to
`NewAndFilter`, `NewOrFilter`, or `NewNotFilter`.