Fixing a regression in `element.data()` introduced with previous version