Fix a Cursor leak if cursor doesn't have any content

Change-Id: If542cd383678aced6904f52422ac9099d18c050e
1 file changed