We should check that `defaultView` exists here. It might not exist in IE or translation-server.