Handle empty docstrings correctly.

Some docstrings would be empty because no matches were found.