Handle obvious key errors sanely without a crash.