Added null pointer checks on StartSimulation, StopSimulation, ResetSimulation and IsSimulationRunning methods