catch error to tailor for the case when loadXML is not yet done in page load