Ensure `getContentResolver()` is not requested from `null` object.
Should fix #554 (closed), however I couldn't reproduce this. At the very least, I fail to see how it is possible with this new change for a null
to get passed to AppProvider.Helper.categories
, whereas it could've before.
In the process, I also made the database query run on the background thread, then update the UI on the UI thread.