ObjectDefinition.attribute_removefield now removes empty attributes

Before if removing the last field from an attribute, it would leave the attribute empty
which in many cases is invalid in nagios.

Now when removing the last attribute, the attribute is also removed.