Fix bug in dataAttrs inheritance logic

Account for charts that extend other charts without declaring additional
data attributes.