Bug #13207: Fix updating signature hash when switching identities