internal/charmstore: remove entity if ES insert fails

This was one reason we were seeing errors
in meta/manifest responses.