Fix crash when we can get file size.