Make sure we're not setting has_parent to null.