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

This can happen if no messages have ever been added to the ChatModel