PersistentState.getLastLogEntry returns value with index and term == null when the log is empty