Fix off-by-one error: 0x00 is valid AppCode.

Just a minor thing.