CRM-14336 - Clear up potential memory leaks from ajaxForm