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-on: https://chromium-review.googlesource.com/c/chromium/src/+/1530761
Reviewed-by: Mark Cogan <marq@chromium.org>
Reviewed-by: Robert Sesek <rsesek@chromium.org>
Commit-Queue: Robbie Gibson <rkgibson@google.com>
Cr-Commit-Position: refs/heads/master@{#641993}
2 files changed