proper type checking for selectMultiple

Otherwise sometimes we get null, then jQuery.each throws an error