Check if VIEW_DATA is defined, if not set as empty array
Merge pull request #82 from mhemmings/view_data-fix

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