WICKET-5117 Wicket ignores allowDefault:false attribute in multipart ajax requests

Prefix preventDefaultIfNecessary() with '_' to mark it as private since it is not part of Wicket.Ajax.** API and move it next to the other private methods
WICKET-5117 Wicket ignores allowDefault:false attribute in multipart ajax requests

Add unit tests