docs: add missing 'new' operator for thrown error

Just a quick typo fix for the dealing-with-streams docs.