protection from creating book with null file