Fix abort rebase failure

Regression of 925b5098c4a0912e42ced6fe905b2890cbe5a463

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