A subtle regression was introduced by D207034, which allows for tools to be appended dynamically, but this caused extensions to be appended twice - once by initialization, and again by calling registerExtension(). Update to account for this potential race condition. Differential Revision: https://phabricator.services.mozilla.com/D209579