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!
Merge pull request #38 from andrusha97/master

Checking pointer before dereferencing