Fix Javascript error when SONATA_CONFIG is undefined