Don't include the root element when calling Element#getElementsByTagNameNS

This fixes #4349.