Fixed a problem in WebAppNode where it would not get the latest node state when getLatestState() was called.