Fix creating a new review request from the first committed change
Fix creating a new review request from the first committed change

Creating a new review request from committed change by selecting the first/root
commit in a linked GitHub repository failed because the root commit has no
parents. This raised a SCMError when trying to fetch the "compare two commits"
API.

The fix is to check if "parent_revision" is empty before trying to fetch
"compare two commits". If "parent_revision" is empty, it fetches the root
commit itself.

Testing Done:
- Manually created new review requests for a root commit with 1 changed file
  and for multiple changed files, and verified that "View Diff" listed the
  expected changes (for both a private and a public GitHub repository).
- Ran unit tests.

Bugs closed: 3207

Reviewed at https://reviews.reviewboard.org/r/5321/

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