Makes MeshInstance3D::get_active_material consistent with the logic in the rendering system. Fixes #38108