Data: Work around IE11 bug with onpageshow attribute

Fixes #14894