fix(protractor): throw index-out-of-bounds

See https://github.com/angular/protractor/issues/915
- to make error more specific instead of propagate later