fix for RA-313: crash trying to view open visit