fix incorrect `empty-docstring`

in notebook tooltip.

The else condition wasn't quite right, and would set doctsring to 'empty doctsring'
even when there was a doctoring.
Merge pull request #3848 from minrk/empty-docstring

fix incorrect `empty-docstring`