WICKET-5178 StopPropagation functionality on link is broken

Add an additional setting for JavaScript stopPropagation functionality