Fix the case where child=0 (last child) in MDI_ChildActivate.