CB-6924 Fixed memory leak in WP page navigation

Occurred when navigating back and forth from native to hybrid page.