Misc uninitialized variable fixes
Fix LSP crashes when ending a stream