Fix ingestion to be more robust to weird inputs.
Fix ingestion to be more robust to weird inputs.

BUG=skia:
TBR=mtklein

Review URL: https://codereview.chromium.org/983913005

Tiger66639/skia-buildbot,Tiger66639/skia-buildbot,Tiger66639/skia-buildbot,google/skia-buildbot,Tiger66639/skia-buildbot,Tiger66639/skia-buildbot,google/skia-buildbot,Tiger66639/skia-buildbot,google/skia-buildbot,google/skia-buildbot,google/skia-buildbot,google/skia-buildbot,google/skia-buildbot,Tiger66639/skia-buildbot,google/skia-buildbot