Fix for inline mode: DOM Exception on WSC pop-up openning when SCAYT is enabled. Added check for method existence