Math is not rendering in the solution area of our problems after upgrade to 2.17, but renders fine in hmwk set editor

Problem source

DOCUMENT();

loadMacros("PG.pl","PGbasicmacros.pl","PGanswermacros.pl");

loadMacros("Parser.pl");

loadMacros("freemanMacros.pl");

$num = random(9, 30);

$mod = $num % 8;

$mt = $num % 4;

$quot = int $num / 8;

$ans = ($mod * pi) / 4;

Context()->texStrings;

BEGIN_TEXT

\{ beginproblem() \}

\{ textbook_ref_exact("Rogawski ET 2e", "1.4","1") \}

$PAR

Find the angle between \( 0 \) and \( 2 \pi \) that is equivalent to \( \displaystyle \frac{$num \pi}{4} \).

$PAR

\( \theta = \) \{ans_rule()\}

END_TEXT

ANS($ans->cmp);

SOLUTION(EV3(<<'END_SOLUTION'));

$PAR

$SOL

$PAR

Because \( \frac{$num \pi}{4} > 2 \pi \), we repeatedly subtract \( 2 \pi \) until we arrive at a radian measure that is between \( 0 \) and \( 2 \pi \). $PAR

Since \( \frac{$num \pi}{4} - $quot (2 \pi) = \frac{$mod \pi}{4}\), and \( 0 < \frac{$mod \pi}{4} < 2 \pi\), we conclude that \(\frac{$mod \pi}{4} \) is the angle measure between \( 0 \) and \( 2 \pi \) that is equivalent to \( \frac{$num \pi}{4} \).

END_SOLUTION

ENDDOCUMENT();