This change fixes an invalid memory access when the trailer is missing / corrupt. Found using libFuzzer.