Only try to delete token if the token create succeeded

Otherwise the code tries to access 'data' which might
not be valid JSON.
Merge pull request #206 from dirkmueller/release/stoney/master

Only try to delete token if the token create succeeded