do not crash when generating ws clientJS if no public dir