Add exception to format_pcoa_to_js

The formatter must be able to write at the very least 3 axes in the data
or the GUI will not function correctly.
Add EmperorLogicError try except block
Change re-position of the camera on scaling

The positioning of the camera when scaling is now done as it was
previously done. See 9df0acbbf688f8be245eeec69774614bc458722b, as it is
the REF that we are trying to emulate.