fix(typeahead): don't throw ReferenceError when viewValue is undefined

When the typeahead's model value isn't initialized somewhere, the $isVisible
method would throw because ngModel.$viewValue is undefined. This change will
consider the value to be below the min length if the view value is undefined.
chore(typeahead): refactor merged test
chore(test): extend jshint prefs to tests