Merge pull request #8 in MM/mpin-sdk-core from bugfix/MAASMOB-40 to master

* commit 'c7805ec4576b5d70e46a4e450abd12a06780c440':
  Protect from failed allocations