Fix revision in magit-visit-item-before-commit and magit-blame