Added check for the requested tag already being in the page for nodeAddedHandler