Fix empty Nginx log files (fixes #846)