The screenwriter was condemned for ‘naming names,’ but the communist threat he exposed was real and dangerous.