Fix segfault when nothing is captured by a closure.