Allow to rebase empty commits

Signed-off-by: Sven Strickroth <email@cs-ware.de>