Fixed issue #2311: Empty commits cannot be rebased