e98d510deb
Apparently, getNetworkPrefixLength can return -1, which confuses the Ruby side. Therefore fall back to guessing the prefix in this case, as we do it for Java <= 1.6.