Thinking null works differently in js and dart