The condition was changed to use mi instead of parent during porting See 68273cc9 (cherry picked from commit e6a2b600)