This was the more principled stand, since taking the Fifth implied agreeing that simply being a Communist was a crime.
The Fifth implies that being a Communist was against the law. 
The Fifth implies that being a Communist wasn't against the law.