Fix 641 - Memory leak: JavascriptRootObjectWrapper is not released on Reload

Temporary fix for #641 until a better fix is found. See discussion on #641 for more detail.