fix response being null
Merge pull request #165 from erkkaha/master

Fix response being undefined