Catch the extension raised when the type doesn't exists.

When an index is brand new, the getType call raises an Exception, due to the lack of the desired type in ElasticSearch.