Show a dialog instead of crashing if a hardware-backed key can't be loaded Closes #1696 See merge request !1233