Handle nulls in stack