Fix CompletionUtil.hasCompletions()