Fixes exception when getValue() returns an error.
Merge pull request #212 from teamsnap/addValue-fix

Fixes exception when getValue() returns an error.