docs: Fix error when using may_return_null()

Fix error with an untested code path opened up by commit 1f78dc0ace.
docs: Skip "Constructors" header for anonymous structs

Structs which don't have a size or constructor should not procuce any doc
string. The trailing "::" was causing a problem with sphinx.