filehash: check for NULL ->file_name in hash lookup

Original patch from Shaozhi Shawn Ye <yeshao@google.com>, modified
by me to continue the lookup and just skip the file instead of
returning NULL.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
diff --git a/filehash.c b/filehash.c
index a00ac78..dab60fe 100644
--- a/filehash.c
+++ b/filehash.c
@@ -39,6 +39,9 @@
 	flist_for_each(n, bucket) {
 		struct fio_file *f = flist_entry(n, struct fio_file, hash_list);
 
+		if (!f->file_name)
+			continue;
+
 		if (!strcmp(f->file_name, name)) {
 			assert(f->fd != -1);
 			return f;