generator: check for empty element names when including templates