JS error on Model selection

A little fix for the selection of Models.
Was throwing Uncaught TypeError: Cannot read property 'toLowerCase' of undefined errors.