change ShellProcess#getErrorsStream so that it checks that there is actually something to read.