Fix login

If there's no index or ES is down, then you see the es_down page. That
page has no histogram, so the dashboard.js code was erroring out which
prevented the browserid stuff from setting up and thus you couldn't
log in.

This fixes that.

r?