Fixed a couple of issues which caused problems when trying to use an invalid CellML file for simulation.