Fix bug when accessing .data() on an empty set. Return null rather than throwing...