Fixed the final conflicts with ignored events affecting events inserted after.
Fixed getting out of bounds exceptions when the history is empty.
Fixed getting out of bounds exceptions when the history is empty.