Fix wrong type check in jQuery.prop