Fix bug when using cache

The callback being called when a cached result is used improperly excluded the first error parameter.