Bug #0000397: Ability to work with main event from OnBefore/OnAfter type events called from kDBItem class
1. Fixes problem, when objects created within temp handler were not having reference to event, that called temp handler method in first place
INP-330