Let Parser_makeFilter return NullStream when an invalid stream is encountered (issue 3417)

Fixes #3417.