Try to not remove root document if we can