Fixes the re-ordering of form elements.

Once again, this proves we shouldn't rely on react internals (it broke with
react 0.12).