Fix the encoder check to not Queue a nil message