Checking if event was not already handled in onclick handler for popup window.