Fix MantidPlot2DTest on windows.

Avoids confirmation dialog.
Refs #9319