Fix submit function returning nil objects when response was valid
Merge pull request #1 from kollegorna/submit_returns_nil

Fix submit function returning nil objects when response was valid