Fix local charm deployed twice in sandbox.

Fix local charm deployed twice in sandbox.
Handle the case when the charm already exists in the charms db.
No QA required.