Fixed segfault in Matlab MEX interface when dims.q is not present