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

Change-Id: Ib6569c731f1f0229574d4590dd11703d72b9bcd3