[components] fix a bug with unpopulated referenced docs