ContentPipeline.Core.FBXExporter:  Rearrange the code a little.  Output the correct number of materials.