Fix error when given packages does not contain any classes.