Adding  checks back for AJAX functions which can be submitted sans AJAX. Fixes #394