call refresh(): this.menuItems was undefined

Calling refresh() on selectmenu without an option throw error: "this.menuItems is undefined"
Now i create this.menuItems also for selectmenu without option and in open function i check if this.menuItems realy has an item.

Fixes #10662