LSIF: check for valid repository
Created by: chrismwendt
In https://github.com/sourcegraph/sourcegraph/pull/5580, I accidentally dropped the sanity check on the existence of a repository when uploading LSIF data. This brings the check back.
Test plan: manual