fixed check on annotation existence prior to creating the xml shippet