Fixed a bug in doc generator

If an attribute of a class has handles for private methods only, then docs should not say that
"This attribute has handles as follows:"