The ability to edit the generated SQL is rather useful, but not possible when using the search window and no results are found. I do not understand the reasoning for this difference. There should be no difference.
This bug was fixed in repository and will be part of a future release; thanks for reporting.
Fix is now ported to 3.5 branch