fix(pages): Stop registering undefined upgrade event callback

Fixes #6780