fix error with puppets when it try to get public ip on node
which doesn't have address in public network

Change-Id: I663e9d90298fd7d2ceb1e97b6648e99a1dec85fe
Closes-bug: #1362536