fix for crash when url is nil
Merge pull request #1 from vishalvijay/fix_url_nil

fix for crash when url is nil