#215127 by chx, webernet, catch; testing by theborg: menu item parenting was broken when moving menu items