Ensure the distribution endpoint is available for BarChart control

If not, the control will fall back to FieldValueSearch which does not depend
on the distribution. Note this is an upstream issue in Serrano. Once fixed, this
behavior will be reverted.

Fix #285