Fix crash on undefined 'ip'

When running with ```DUMP``` action
Merge pull request #1 from jjarmoc/patch-1

Fix crash on undefined 'ip'