Fixed bug that caused infinite loop of NullPointerExceptions during provisioning of windows instances.

Signed-off-by: Stefan C. Mueller <scm@smurn.org>