Fix infinite loop on download end (oops)

- also added RDWorker.get_filename_from_url