Typescript Object Is Possibly Undefined Assignment Tracker