Corrected (de)activation of associated EXEC document (closes #3205)