Fix NPE in console when trading a written book not generated by this plugin.