Fix an ASSERT

wxFileSelector assert with extra | issue