Fix latency calculation incoherency.
Fix latency calculation incoherency.

Use logging.error() instead of assert, so that the processing goes on but that
the error is not completely silently dropped.

The problem is that calculating the latency twice resulted in different values.
This can happen when the way latency is calculated is changed.

Review: https://codereview.appspot.com/14771043/

rietveld-codereview/rietveld,draem0507/rietveld,salomon1184/rietveld,aungzanbaw/rietveld,openlabs/cr.openlabs.co.in,gco/rietveld,DeanHere/rietveld,dushmis/rietveld,xtypebee/rietveld,fuzan/rietveld,supriyantomaftuh/rietveld,rietveld-codereview/rietveld,sajingeo/rietveld,robfig/rietveld,robfig/rietveld,v3ss0n/rietveld,andyzsf/rietveld,andyzsf/rietveld,Koulio/rietveld,Koulio/rietveld,robfig/rietveld,google-code-export/rietveld,gavioto/rietveld,google-code-export/rietveld,gco/rietveld,foolonhill/rietveld,foolonhill/rietveld,sajingeo/rietveld,xtypebee/rietveld,sajingeo/rietveld,openlabs/cr.openlabs.co.in,DeanHere/rietveld,berkus/rietveld,supriyantomaftuh/rietveld,DeanHere/rietveld,gco/rietveld,ericmckean/rietveld,andyzsf/rietveld,dushmis/rietveld,rietveld-codereview/rietveld,arg0/rietveld,google-code-export/rietveld,openlabs/cr.openlabs.co.in,v3ss0n/rietveld,xtypebee/rietveld,salomon1184/rietveld,supriyantomaftuh/rietveld,foolonhill/rietveld,rietveld-codereview/rietveld,gavioto/rietveld,fuzan/rietveld,aungzanbaw/rietveld,dushmis/rietveld,ericmckean/rietveld,aungzanbaw/rietveld,Koulio/rietveld,arg0/rietveld,arg0/rietveld,gavioto/rietveld,berkus/rietveld,v3ss0n/rietveld,draem0507/rietveld,berkus/rietveld,fuzan/rietveld,salomon1184/rietveld,draem0507/rietveld,ericmckean/rietveld