Fixing an exception on GridlabD error/crash.