Fixed missing clearTimeout call

Added clearTimeout call to inactive window or tab when the warning
dialog appears on the active window or tab