Under facter 3.5.1, which is included with the puppetlabs "collection" puppet-agent package that provides puppet 4.8.2 for Ubuntu Trusty, our ipaddress custom fact breaks with error:
ERROR puppetlabs.facter - error while resolving custom fact "ipaddress": no implicit conversion of nil into String