diff --git advagg.module advagg.module
index 6478e28..fcaca3b 100644
--- advagg.module
+++ advagg.module
@@ -2066,7 +2066,7 @@ function advagg_process_css($css = NULL, $noagg = FALSE) {
       $files = array();
       foreach ($types as $type) {
         foreach ($type as $file => $cache) {
-          if ($cache) {
+          if ($cache && advagg_file_exists($file)) {
             $files[] = $file;
             $files_included[$media][$file] = TRUE;
             unset($files_aggregates_included[$file]);
