Added some pollyfills for empty data sets.
Merge pull request #479 from Jedwondle/v1.2

Added some pollyfills for empty data sets.