Move JAXBElement.isNil() work-around into its own class.