Issue #2279537 by Turek, alex-mo: Fixed IE8: Unable to get property 'beforeSubmit' of undefined or null reference.