Mentioned in [60496] on WordPress SVN: Canonical: prevent possible "Undefined array key" PHP error in `redirect_canonical()`, if the `path` or `query` array keys have gone missing.
Created ticket #63733 on Core Trac: Undefined array key "path" error coming from dynamically generated ...