Fix for issue #15

Fixes the possible NPE described in https://github.com/ItudeMobile/itude-mobile-android-mobbl/issues/15