do not try to find a candidate if there aren't any
Merge pull request #2 from jachymko/master

do not try to find a candidate if there aren't any