corrected bug, if missingviews was null or empty XML export fails