HUE-1047 [core] Invalid form submission blocks next submission

All the use cases are now covered. From now on when a form submit event is intercepted by jQuery and canceled we need to call the globally available resetPrimaryButtonsStatus() function.