Handle decoding error gracefully upon reading, return undefined. Closes #215.