Handle it if a cursor has zero rows

b/11174975
This has a fallback to handle a null cursor, but
not an empty one. Now we handle empty as well.

Change-Id: I84662e307a723b037527d8ca9c3ec8dc2ce43ee6
1 file changed