fix(pages): Stop registering undefined upgrade event callback

Fixes #6780
Merge pull request #7061 from ewinslow/pages-upgrade-warning-b6780

fix(pages): Stop registering undefined upgrade event callback