Fix for a bug when 'docstring' is None.