Event Flag Research only searches in a small subset of the savefile where most events are stored. The flag used to determine whether you unlocked Mystery Gift is not located in that subset. In US savefiles, it is located at address 0x0BE3 (value is 0x00 if unlocked). Event flags tracked by the Researcher start at address 0x29F3.