OK, so I found the problem. It was a bug specific to the itch.io production build where the game didn't initialize the game's save data properly the very first time the game was run. It could be circumvented by simply reloading the page, but I patched it so that it shouldn't happen now.