Update src/WrittenBook.java

Fix NullPointerException.