Handle null Files when converting to Paths