convnet: Fix bug in overly optimistic cache key generator.