Checking pre-condition for message size.