use default cv mask when save document (refs #4222)
correct compute mask when visibility is set to a tab