Fixing a small re-entracy bug in the fetch API which lead to a crash when deleting cache items.