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

Fixes #3417.

(For simpler reviewing, use https://github.com/mozilla/pdf.js/pull/4945/files?w=1)