fixed error thrown if first search() callback returns []
Merge pull request #29 from trevorah/fix-empty-array-error

fixed error thrown if first search() callback returns []