Guarding against 'null' file list