Prevent segfaults when reporting emitter errors