fix #1382 making adding Monaco siteextension robust