Avoid potential issues when skipping big log files

Thanks to @Tungstwenty for the heads-up.