fix checking for FormData existence

for browsers without FormData support, referencing FormData directly causes ReferenceError.