Fix a bug where register is used before the first published messages, and the corresponding subscribe is after
This caused an erroneous "register too old" error