Fix omero api exception in cpp sessions test