Ensure IEx won't crash on bad error messages and invalid stacktraceqs, closes #974