Fixed #2076 where .val() could return an array instead of undefined when the jquery...