Protect against streams with mode=None