Don't crash if the cursor is null.

Change-Id: Ibbacc97f781c1485599a5e11217527930d97fe2d
1 file changed