Bug 4376: Fixed incorrect assumption about QName in extensions