value flow: fix segfault if var is null