Fix rollbackOnly transaction in xml import

If the transaction is rollBack Only, commit should trigger an exception in order to catch it.