Collect style tags the same way as we collect script tags.
ie. collect everything up to the end tag in one step.
Merge pull request #3366 from adobe/rlim/remove-dom-agent-warnings

Collect style tags the same way as we collect script tags.