Fix Transformer on problems created pre-formal mode

Summary:
The mode for the Transformer was undefined when rendered from json,
since the defaultProps were only in the editor.

Test Plan: testrender.html with old problem, verify buttons work and no
js errors

Auditors: alex