Check if stream is empty pointer in decoder

Decoder has default constructor that makes empty m_stream, but ~decoder dereferences it. So ~decoder must first check it!