GDS-1322: fix Got IllegalArgumentException in org.granite.messaging.amf.io.AMF3Deserializer.ensureAvailable0.