CB-5698 ios: Check to see if photoData exists before using

close #19