pulse2-setup: Fix traceback when not using batch mode

If you don't use batch mode, read_ip() method can fail.

This failure has been introduced in commit
5a86a700af71c2caa690a30e5e1f1096a6065142