skip zero bytes reading or wrtiting

Windows debug runtime (and maybe some other standard libraries) does not like it. :)
(discussed in https://github.com/DennisOSRM/Project-OSRM/pull/998#discussion_r13447570 )