Handle undefined segment values