Fix for https://github.com/angular-ui/ui-select/pull/327#issuecomment-65960779

Minor cleanup and fix for issue mentioned at https://github.com/angular-ui/ui-select/pull/327#issuecomment-65960779