fix NPE

fix NPE when the dimension of metric is not present one of the segments
to be reIndexed.
Merge pull request #747 from metamx/ingest-segment-npe-fix

fix NPE