fix issues found by coverage scan -- review request #58

This patch fixed the issues reported by coverage scan.
Here is the details:
1. typo in welsCodecTrace::WriteString.
2. NULL check before use in decoder_core.cpp
3. delete dead statement after return.