SUP-2604

resolve safeEnvironement promise only when we have sources