Fix missing throw in datashape parsing