Prevent NPE with null cursor

Bug: 14360501
Change-Id: Idb86a00ce3e1d4f2ceb7a7dc33f8dc9058f13993
1 file changed