I found HP and MP cheats but they only work for that specific battle, the very next battle it breaks and you need to re-find the memory address to modify. It appears the code above works the same way so there's no fix based on the method I found it. I could post codes for the very first encounter in-game if that will help you but you'd have to start from scratch if you want to modify your stats.
If you want to search the HP/MP codes yourself, this is how I found it and it's very easy. Start a battle with a demon, take a note of the HP of the character who you want to modify. Enter cheat finder and do an exact 16bit search, enter the exact HP (ie main character currently has 450hp so enter 00450). It will do a ram dump then go back ingame, preferably use an hp skill that depletes your HP or wait until you are hit. Once your HP is lowered, go back into cheat finder mid-battle and do a 'less than' search. Rinse and repeat one more time and you will find the HP address modifier after 2 'less than' searches. In the example above, lets say after 2 searches your HP dropped from 450 to 250, google "250 in hex" and the result is 'FA'. One of the memory addresses in the view list will end in 'FA' which you can now modify, modify FA and the memory address to right of it to FF FF and your HP will now be 65,000+ (it won't display properly ingame).
For the MP cheat, it's always 4 memory addresses to the right of the HP modifier. For example, once you find the HP address (it's always 084XXXXX), lets imagine its 08425535 on this specific battle. In this scenario, the MP address will be 08425539, you just add 4 to the end or just move 4 spaces to the right the HP address.
Hopefully this helps and happy hunting!