Fix the check for the end of a log file

When searching for the end of a log file, check the whole 32-bit length for a non-zero value.  It's reasonably likely that the first, low-order byte of the length will be zero, since we pad to 128 bytes by default.