Fix error for profiles without layers tree dumps.