check for existence of request.query and request.body before deleting token to prevent ServerError 500
Merge pull request #28 from caasjj/master

check for existence of request.query and request.body before deleting to...