[react-page-middleware] Stop crashing the server on syntax error.

Summary:As titled.

Test Plan:Caused syntax error and did not observe crash.