xbps_fetch_file: avoid copying from a NULL pointer.