Catch LCIO exceptions by references in order to fix bug