Fix bug #9541 by Bart Verthé - do not reset document schema when reading an element.