Fixed injector logic to play nice with React apps
With the previous logic, if either the "source" or the "target" elements were not present yet in the DOM, injection would fail.
With the previous logic, if either the "source" or the "target" elements were not present yet in the DOM, injection would fail.