Fix Search-by-image crash when given a nil image/data

My thought was that ResizedImageForSearchByImage should be fine with an
empty image. If, on iOS, it's passed a non-empty image with no UIImage
representation, that will still crash, but is probably ok (although if
that's what DCHECK should be used for, let me know).

Bug: 943145
Change-Id: If617822090273af64a757666a09afa8a4e4861d1
Reviewed-by: Mark Cogan <>
Reviewed-by: Robert Sesek <>
Commit-Queue: Robbie Gibson <>
Cr-Commit-Position: refs/heads/master@{#641993}
2 files changed