Fix for cursor not closed exception when using android API-8

Doesn't seem like the cleanest solution, but it works, both when building with api 8 and higher.
For soomla/android-store#15