OK. I done a bit more digging. Turns out that my method of patching the html file (required so it can load the binary versions of the JS files) was error prone. I found a better alternative and I'm working to release a hotfix for it.
EDIT: The hotfix is out.