Fix for <rdar://problem/5108896>, make sure the assert for setEncodedSize