Fix cursor leak in TelephonyProvider

Close the cursor at the end of the query and prevent cursor is null.

Bug: 115709816
Test: run TelephonyProvider test.
Change-Id: I466d68881d6ce98a985dfbf5a604348708388349
1 file changed