Handle null Cursor being returned by onLoadFinished

Assuming the Cursor returned by onLoadFinished is not null led to a crash.