Remove OnHide hook, does not seem to be needed anymore and fixes c-stack overflow error.
Added tag 4.15 for changeset 18a568af3468