Special handling of script tag for HTML instrumentation.

script tags are collected with one step including the end tag. So we need to specially handle them in scanDocument function. This fixed issue #3327.