findEmptyMassObjects-functions function

Finds or removes empty AbstractMassObject objects in a list.