Allow addFile mock to work with undefined data