Fixes #6651,bz1094986 - Disable Sync without repo url

Added code not allow syncing on repositories without a URL.
What's the difference between this function and the one above? Would I ever use one and not the other?