Prevent <self> nodes with no methods in the package list.