Fix environment's quick deploy

It failed during attempt to get name of an environment with
environment_id = None (it was None because of delayed
environment creation during quick deploy).

Closes-Bug: #1328974
Change-Id: I98c13b07479b47323f85f978c4a4a3d1f8888996