Hi Vasanth,
Then you'll have to check the code leading up to that "if".
I'd start by placing a breaking point on the first line of the method that is handling the ItemEvents fired from the Application object.
Follow the debugger to check why the event is being routed somewhere else.
Best regards,
Pedro Magueija