Fix NPE when no log files are present