(kind of) hotfrix for input streams to fix an edge case from new Nokias

Fixes an edge case where the input stream returns 0, which is out of spec. this is the minimal impact change, so it doesn't need to be replicated anywhere and the branch can be closed when done. I'll push a more thorough change that updates the tests to master.