Fix read error detection in memcache module.