Catch SQLAlchemyError when branching ACLs, keep them and return them later