url-lib.sh: handle 0-size files with curl

https://bugzilla.redhat.com/show_bug.cgi?id=989133#c9