Check null pointer

Signed-off-by: Sup Yut Sum <ch3cooli@gmail.com>
If stash save is called in rebase dialog, ask to stash pop when rebase ends

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