We wouldn't add the missing EOI marker if the frame ended with either 0xFF NN or 0xNN D9.
Fixes #2407 (closed)