Fix compiler warning for getnetworkhashps.