guard reference to grains.cloud

Prevent errors during provisioning if grains.cloud has not been initialized.