Fix fatal error when remote log file is 0 size. Thanks to Julien Rouhaud for the report.