Partial fix for bug #20378 (https://gna.org/bugs/index.php?20378).
The gui_raise() function was operating differently under the command line run test suite and the GUI
run test suite. The operation of the function is now consistent, and no RelaxError is raised
(unless the raise_flag argument is set).