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