The merge of #5613 introduced a regression when building with io_mode evented, fixed in this commit. closes #6715