bugfix: completion on empty candidate list resulted in uncatched exception