[Win32 Svn] Fixup to GetRepositoryReference.

Give proper results and sanity check for results.