Compatibility bugfix - prevent Undefined index on checking if ElasticSearch type mappings are optimized