MYLOC-106 Validating that the value passed to preferred_location.isValid...

...Location is an object.