fix "Use of uninitialized value $nwrite"

During stress testing, I got the following warning:
```
Use of uninitialized value $nwrite in addition (+) at /home/skaji/env/plenv/versions/relocatable-5.20.1/lib/site_perl/5.20.1/Fluent/Logger.pm line 290.
```
This patch would fix this.