Improve error message for nil IP lookup. Closes #3