CreatePullRequestForm crash fixed. Closes #1727