Fix expression index handling.

This fixes https://github.com/prometheus/promdash/issues/54