Prevent DOMParser from logging non-fatal errors

This specifies a no-op error handler to DOMParser to prevent it from
logging non-fatal errors to the console. Any fatal errors will still
raise exceptions, so this reduces noise in other cases.