When a server becomes the leader, the first log entry it should apply must be the greater of context.lastApplied + 1 and log.firstIndex
This takes care of the case where the server has previously compacted the log and therefore its log's first index is no longer 1