bug-22138: Adding publisher-side checks to verify nonce is under max length.