ngModel and onlySelect results in undefined model

Bug fix for you!

indexOf returns -1 for a match, not zero, causing the ngModel to always be empty when onlySelect is true.