Don't segfault when there's no target in If