Fix segfault on very first history redo