Validate that a value is a non-null object.
The value to validate
Dot-notation path for error messages
if the value is not a non-null object
Validate that a value is a non-null object.