Fix dirty checking when checking when previous state was uninitialized property (NH-2860)