Persist the appropriate position when updating a menu item

See https://core.trac.wordpress.org/ticket/28140