Add null reference handler to list comprehension in interactive mode