Update selectmenu.js

Corrected: after remove all options from select and then call refresh on selectmenu, i get error: "this.menuItems is undefined"

Fixes jquery/jquery-ui#10662