use default cv mask when save document (closes #4222)

correct compute mask when visibility is set to a tab