Last Jedi director helped write Han Solo's funeral scene - and an unseen meeting between two characters - for film novelisation