[DF-185] Added assert on file opening