Detect single find

This fixes an infinite loop where a single element is expected to be an array
when using implicit wait.