Unable to check result "undefined" in cli

https://issues.jboss.org/browse/WFLY-4118
Looks like the comment I wrote this morning didn't make it or got lost for some reason. Repeating what was in it...

>The ModelNode getting compared will be of type 'Object', or 'List' maybe, because a singular value type (bool, string, int, etc) couldn't be located as the path didn't exist.

Yes, this is the reason for the inconsistency. The thing is ModelNodePathOperand.resolveValue(...) should not return a ModelNode value for the last existing parent of the target value in the path. If the path to the target value doesn't exist, it should return null. (When we implement the path-exists check, we'll throw an error here instead). ModelNode value should only be returned if the path exists.
Then in ComparisonOperation.resolveValue(...) resolved null will result in false. This is before any of the specific comparison operations (including !=) begin their analyzes.
What do you think of this?