Fixed small bug in reading WAL logs that are encrypted.