Fixes #1823 (Default visual style modified when cancelling the opening of a session file)

Change-Id: I3939fb1ef65dd0943bd13eb0c908f8d7e635c382