Do not write index json data if mappings are empty