Check if dataRecord is a SiteTree to prevent errors

fixes #6