Fix a breakage with saving repositories without hosting services.
Fix a breakage with saving repositories without hosting services.

The recent hosting service change broke saving repositories when
not using a hosting service. We're now more careful in what we check.

sgallagher/reviewboard,KnowNo/reviewboard,KnowNo/reviewboard,brennie/reviewboard,sgallagher/reviewboard,brennie/reviewboard,davidt/reviewboard,sgallagher/reviewboard,beol/reviewboard,1tush/reviewboard,brennie/reviewboard,reviewboard/reviewboard,bkochendorfer/reviewboard,bkochendorfer/reviewboard,davidt/reviewboard,1tush/reviewboard,reviewboard/reviewboard,1tush/reviewboard,reviewboard/reviewboard,reviewboard/reviewboard,1tush/reviewboard,davidt/reviewboard,custode/reviewboard,beol/reviewboard,chipx86/reviewboard,1tush/reviewboard,chipx86/reviewboard,1tush/reviewboard,KnowNo/reviewboard,sgallagher/reviewboard,1tush/reviewboard,custode/reviewboard,beol/reviewboard,custode/reviewboard,beol/reviewboard,davidt/reviewboard,brennie/reviewboard,bkochendorfer/reviewboard,bkochendorfer/reviewboard,chipx86/reviewboard,custode/reviewboard,1tush/reviewboard,chipx86/reviewboard,KnowNo/reviewboard,1tush/reviewboard