If opening the directory fails, it returns -1 as size. Don't add that to the parent's total size. (cherry picked from commit a6490755)