Fixes #6651,bz1094986 - Disable Sync without repo url

Added code not allow syncing on repositories without a URL.