Construct index, show and facet field labels from the field name if no field name is available.

Fixes one of the problems in #974