Fix TypeError when extra_coords is None