Fixes ISSUE-75 cancel not working on empty debug logs

Note that this fix is also required for pencil/cancel to work on an empty new orders dialog.