Fix error when no file options passed to the files handler