BUG Fix issue creating environments

Fixes issue noted in https://github.com/silverstripe/deploynaut/commit/ef2916b9af933e177c4b463ce56037d9fd6fa9af#diff-834ebb2a67cee4b35698735470cddfefR735