Fix NPE on file size check.