fix empty content of tooltip after 'copy' action in docs
regression of #34519
Many thanks to @louismaximepiton