Fix an issue with validating against repos that don't use basedir.
Fix an issue with validating against repos that don't use basedir.

The UploadDiffForm had a buried case where it set the basedir to the empty
string in cases where the repository uses absolute paths, and it turns out that
this is necessary because we pass the value to os.path.join(), which really
doesn't like getting None for its first argument. I had missed this when
implementing ValidateDiffResource, which meant it worked for svn but didn't for
git.

Testing done: validated some diffs against a git repository.
Reviewed at http://reviews.reviewboard.org/r/4268/

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