fixed issue with element with view-id attribute but no view data.