Check if VIEW_DATA is defined, if not set as empty array

Fixes https://github.com/KartikTalwar/gmail.js/issues/81