Fixed issue #2340: Error dialog shown when editing a commit during rebase, even if changes are staged

Signed-off-by: Sven Strickroth <email@cs-ware.de>
Fixed issue #1872: Rebase edit doesn't amend files but only the commit message

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