Thanks for these suggestions, Mandy.
Well... I just shut everything down and re-booted my computer. I changed nothing in the code. Now it works.
This was very strange. I still have no idea what was going on but at least for now it seems to be fixed.
Thank you all again for the awesome support this forum provides. It's one of the main reasons I use JMP.