CLOUDIFY-1373 Teardown byon cloud without rest service causes NullPointerException