prevent the user from submitting empty titles for chapters, subchapters and sections, fixes #177