Refactor ip_address code to address issue from @ludeth
Refactor ip_address code to address issue from @ludeth

This way is a little more likely to avoid not assigining ip_address.
It's possible that some other exception could be thrown.

It looks like the assignment to `conditions` vanished with
https://github.com/salopensource/sal/commit/c9c63a214ec1926be1af8edfbdd02edd70f9c960

erikng/sal,sheagcraig/sal,sheagcraig/sal,erikng/sal,sheagcraig/sal,salopensource/sal,salopensource/sal,salopensource/sal,salopensource/sal,erikng/sal,erikng/sal,sheagcraig/sal