chan_sip: Check that an iostream exists before accessing.