If child exists, use the existing ID on the new_post, instead of relying on the return value of wp_update_post.