NullPointerException when checking book lore