Check return value for _decode before using

Fixes #74
Merge pull request #75 from hintjens/master

Check return value for _decode before using