When adding charms or bundles to mongo, index in ES if configured.

Also add EnsureID to ElasticSearch.
It seems we can just return nil here, since possible errors have been already checked.