Update selectmenu.js

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