fix(element): ElementArrayFinder.count was slow
fix(element): ElementArrayFinder.count was slow

The bug fix for #1903
(https://github.com/angular/protractor/commit/2a765c76e121de13ff86a279fe3f21cb15c17783)
was causing ElementArrayFinder.prototype.count to be slow because of
the extranous checks that must be performed. However, the checks could be
delayed into the isPresent check, which will mitigate this issue

fixes(#2359)

jcapozzi/protractor,samccone/protractor,gempesaw/protractor,nkhuyu/protractor,mstrutt/protractor,Everworks/protractor,elgalu/protractor,hsleung95/protractor,hdemon/protractor,nwolverson/protractor,hdemon/protractor,marleitao/protractor,onshape/protractor,chinnaamara/protractor,tboyce/protractor,Everworks/protractor,tjabell/protractor,szikszail/protractor,onshape/protractor,blabno/protractor,jcapozzi/protractor,lmacneil/protractor,GistIcon/protractor,xtrepo/protractor,tiru67gmailcom/protractor,MSakamaki/protractor,NickTomlin/protractor,fox2081/protractor,modernfidelity/protractor,paraplexed/protractor,sirwalt/protractor,jlin412/protractor,likaiwalkman/protractor,vliloia/protractor,skyFi/protractor,HichemBenChaaben/protractor,joshmgrant/protractor,jcapozzi/protractor,mstrutt/protractor,SpiritIT/protractor,Droogans/protractor,alfonso-presa/protractor,sjelin/protractor,fancyhejianyang/protractor-operation,cnishina/protractor,cnishina/protractor,marleitao/protractor,tjabell/protractor,skyFi/protractor,telefonicaid/protractor,BernardoSilva/protractor,cnishina/protractor,tjabell/protractor,samccone/protractor,sirwalt/protractor,chinnaamara/protractor,vliloia/protractor,modernfidelity/protractor,likaiwalkman/protractor,juliemr/protractor,igniteram/protractor,jphustman/protractor,jcapozzi/protractor,jive/protractor,fancyhejianyang/protractor-operation,marleitao/protractor,szikszail/protractor,mbrukman/protractor,fancyhejianyang/protractor-operation,Droogans/protractor,juliemr/protractor,dylanb/protractor,BernardoSilva/protractor,chinnaamara/protractor,NickTomlin/protractor,benaston/protractor,paraplexed/protractor,gad2103/protractor,hsleung95/protractor,mgiambalvo/protractor,Everworks/protractor,NickTomlin/protractor,elgalu/protractor,mstrutt/protractor,tanbo800/protractor,manoj9788/protractor,dylanb/protractor,jive/protractor,jlin412/protractor,marleitao/protractor,juliemr/protractor,szikszail/protractor,stalniy/protractor,kongx73/protractor,alecxe/protractor,hsleung95/protractor,spirosikmd/protractor,telefonicaid/protractor,hankduan/protractor,karthiktv006/protractor,tanbo800/protractor,donaldpipowitch/protractor,christian-bromann/protractor,onshape/protractor,benaston/protractor,elgalu/protractor,karthiktv006/protractor,hankduan/protractor,alfonso-presa/protractor,MSakamaki/protractor,manoj9788/protractor,gad2103/protractor,paraplexed/protractor,juliemr/protractor,hankduan/protractor,SpiritIT/protractor,jlin412/protractor,stalniy/protractor,xaka/protractor,xtrepo/protractor,bnicart/protractor,Droogans/protractor,xaka/protractor,GistIcon/protractor,BernardoSilva/protractor,faceleg/protractor,SpiritIT/protractor,nwolverson/protractor,angular/protractor,igniteram/protractor,faceleg/protractor,samccone/protractor,christian-bromann/protractor,tboyce/protractor,telefonicaid/protractor,alecxe/protractor,gad2103/protractor,sjelin/protractor,fox2081/protractor,tiru67gmailcom/protractor,joshmgrant/protractor,xtrepo/protractor,benaston/protractor,kongx73/protractor,stalniy/protractor,jphustman/protractor,blabno/protractor,mbrukman/protractor,bnicart/protractor,manoj9788/protractor,bnicart/protractor,jive/protractor,sirwalt/protractor,AbraaoAlves/protractor,Everworks/protractor,NickTomlin/protractor,donaldpipowitch/protractor,panuhorsmalahti/protractor,mbrukman/protractor,igniteram/protractor,MSakamaki/protractor,spirosikmd/protractor,likaiwalkman/protractor,cnishina/protractor,sjelin/protractor,surfjedi/protractor,alfonso-presa/protractor,dylanb/protractor,gempesaw/protractor,igniteram/protractor,HichemBenChaaben/protractor,tanbo800/protractor,jlin412/protractor,jphustman/protractor,sirwalt/protractor,lmacneil/protractor,modernfidelity/protractor,xaka/protractor,alecxe/protractor,panuhorsmalahti/protractor,surfjedi/protractor,blabno/protractor,karthiktv006/protractor,hdemon/protractor,kongx73/protractor,tiru67gmailcom/protractor,angular/protractor,joshmgrant/protractor,GistIcon/protractor,sjelin/protractor,xaka/protractor,fancyhejianyang/protractor-operation,spirosikmd/protractor,donaldpipowitch/protractor,vliloia/protractor,tboyce/protractor,mgiambalvo/protractor,surfjedi/protractor,skyFi/protractor,manoj9788/protractor,christian-bromann/protractor,angular/protractor,onshape/protractor,AbraaoAlves/protractor,nkhuyu/protractor,mgiambalvo/protractor,angular/protractor,gempesaw/protractor,fox2081/protractor,lmacneil/protractor,panuhorsmalahti/protractor,HichemBenChaaben/protractor,mgiambalvo/protractor,AbraaoAlves/protractor,faceleg/protractor,nwolverson/protractor,nkhuyu/protractor