Fixed issue #2121: Sync Dialog Fetch and Rebase fails due to no branch selection

Signed-off-by: Sup Yut Sum <ch3cooli@gmail.com>