The error stream can be null, prevent an NPE