Fixed editor crash when entering camera values

The editor no longer crashes when entering 0 values for the camera
reference cell width and height.

fixes #537