Return 0 for read on empty file instead of -1. Fixes "Operation not
permitted" error.