avoid panic when converting nested nil structs