Fix message not shown on /query nick msg

When opening a query dialog with /query nick msg, the message was not shown in
the newly opened dialog. This fixes that issue.