check if DataView exist before using instanceof check
Merge pull request #6 from TimBeyer/fix-data-view-check

check if DataView exist before using instanceof check