PersistentState: add method to get a single LogEntry by index