Fixes MOBILE-464
Checks whether the responseExpected flag is false, and that no data has been
passed back. If that's the case then it sets the returned data to a blank
object.
Merge pull request #11 from moodlehq/FIX-MOBILE-464

Fixes MOBILE-464