Bug 6040 : Adding some error handling to the opac export