Fix error when there is no public node in doc content