Fix exception handling under MATLAB in unitary test infrastructure.

The getReport() function of MATLAB expects an exception coming from the "catch"
statement. It is not happy with the value returned by lasterror().
Fixed bug in dseries constructor introduced in 4e1c26db.