Fix NPE on null cursor close

Don't call cursor.close when have a null cursor.

Bug:14494079
Change-Id: Iac9e3db230274c15193535bd4d05ff13c57eb11e
2 files changed