Fix error throwing by calling getCount before closing the cursor.

Test: no need
Bug: 320419200
Change-Id: I6c894080bf476fb21773e2a44ef1f67ca37e4347
1 file changed