size: added check for next file in diff
diff: fix NoneType exceptions with missing files