Fixed unintentional inversion of if statement in MessageInputStream.