[Engine-IRC] Added workaround for losing messages on newly created queries (closes: #634)