Correct message size validation

Compares sizeOfMessage to maxMessageSizeBytes instead of maxBsonSize