Fix / optimize ajax form plugin

[#75226372]

Do not send unnecessary AJAX request when there are no target elements
available.