Return error when trying to get properties of inexistent dataset

Previously it would throw an exception calling split on undefined.