Done with handling a CellML API crash when when trying to generate code for a malformed CellML file (closes #340).

Done with handling a CellML API crash when when trying to generate code
for a malformed CellML file (closes #340).