Protecting the loading of mystate.xml against errors.