Fixed a JS error with forms that didn't have name or email fields.