[Engine] Fixed NullReferenceException thrown in ChatModel.Close()

This can happen if no messages have ever been added to the ChatModel
Merge pull request #112 from oli-obk/fix/chatmodel_close