Elasticsearch: fix function table_status() for 2 or more tables