INTEXT-81 Fixing bug in decoding message streams
* adding a null check on the key decoder

https://jira.springsource.org/browse/INTEXT-81
INTEXT-81 Add unit tests
Merge pull request #52 from bellwethr/master

* bellwethr-master:
  INTEXT-81 Add unit tests
  INTEXT-81 Fixing bug in decoding message streams * adding a null check on the key decoder