fix referencing undefined in ajaxSubmit()

If argument of ajaxSubmit is not set, line 93/94 - options.type and options.url make an exception.
So I added check it before refer an undefined object.