Don't rescan doc for html instrumentation when reattaching to editor

This is for #9303 

Rescanning doc blows away old ids and replaces them, so synchronization is lost.

This was broken with fix for #7886, so verify that is still fixed.