8149915: enabling validate-annotations feature for xsd schema with annotation causes NPEReviewed-by: joehwContributed-by: christoph.langer@sap.com