Fix incoming federation events losing state changes when predecessors share the same state-before snapshot. Contributed by @eleboucher.