cat: Fix error checking so we don't fail on zero length files