Avoid a possible crash on Linux when using the "Script" options of the Query Tool