Bugfix: readAttributes should return undefined if no data provided