fix TypeError: Cannot read property 'length' of undefined, because the v...

scope.$watch(attrs.uiSlider, function(newVal){
  init();
  elm.slider('option', newVal);
}, true);

the variable newVal come as undefined 
that cause an error "TypeError: Cannot read property 'length' of undefined" from jQuery