Fixed guide-generation bug

Fixed bug in start-of-text guide element generation when book does not have titlepage or cover.