[history] Mark Location's key as optional (#20447)
[history] Mark Location's key as optional (#20447)

While the `key` will always be a string value after updating history, it will not be present when the `history` object is first created, at least until the first push/replace state happens.
georgemarshall/DefinitelyTyped,jimthedev/DefinitelyTyped,dsebastien/DefinitelyTyped,alexdresko/DefinitelyTyped,AgentME/DefinitelyTyped,arusakov/DefinitelyTyped,benishouga/DefinitelyTyped,chrootsu/DefinitelyTyped,georgemarshall/DefinitelyTyped,AbraaoAlves/DefinitelyTyped,benishouga/DefinitelyTyped,benliddicott/DefinitelyTyped,magny/DefinitelyTyped,alexdresko/DefinitelyTyped,mcliment/DefinitelyTyped,zuzusik/DefinitelyTyped,AbraaoAlves/DefinitelyTyped,magny/DefinitelyTyped,dsebastien/DefinitelyTyped,arusakov/DefinitelyTyped,zuzusik/DefinitelyTyped,aciccarello/DefinitelyTyped,rolandzwaga/DefinitelyTyped,borisyankov/DefinitelyTyped,AgentME/DefinitelyTyped,one-pieces/DefinitelyTyped,markogresak/DefinitelyTyped,arusakov/DefinitelyTyped,jimthedev/DefinitelyTyped,borisyankov/DefinitelyTyped,zuzusik/DefinitelyTyped,AgentME/DefinitelyTyped,jimthedev/DefinitelyTyped,georgemarshall/DefinitelyTyped,aciccarello/DefinitelyTyped,benishouga/DefinitelyTyped,rolandzwaga/DefinitelyTyped,georgemarshall/DefinitelyTyped,chrootsu/DefinitelyTyped,AgentME/DefinitelyTyped,laurentiustamate94/DefinitelyTyped,AbraaoAlves/DefinitelyTyped,aciccarello/DefinitelyTyped