Avoid exception throwing in querystring parsing.
Optimize DOM node detection.