Fix crash in getPhotoPickSize

Handle null or empty cursors.

Bug:12619944
Change-Id: I5cae8c16e29474afbc78a172f39bbb04daec446a
(cherry picked from commit b126f4a7427095468ee66fa4c3b9586f0b889288)
2 files changed