Initialize GUI before updating program editor state.
Initialize GUI before updating program editor state.

Otherwise the GUI is always initialized for a custom syntax,
which leads to screwy behavior for customize button and
read-only editor property.

Change-Id: Ia6f6836ec0edb06600af492018865692b93b1861

OpenChemistry/molequeue,OpenChemistry/molequeue,OpenChemistry/molequeue