Added additional check if vendorextension actually is a jaxbelement