Fixed an issue with the viewer that always rendered a valid equation as
invalid if subscripts, Greek symbols and digit grouping were disabled
(closes #404).