Empty IP yields to warning, not error

Related to issue #3.

WARNING, the code may not compile, I wrote it in a text editor. (In particular, I'm not sure that "dialog" is in scope.)