log_anlayzer.py minor fix: handle edge condition