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

Added button reset on modal hide and on not ongoing ajax requests