Do not let URL to be cleared in case of error, fixes #213