Add fail-safe to AgaviToolkit::clearCache(), closes #1260