Fix amend when staged files do not exist