Are you opening in the browser?
If so, you've admin approved or sandboxed your form so that your managed code will run, correct?
I've never heard of publishing a form affect the namespace in a main data source and never had that happen myself, so I'd suspect that theory is incorrect. Are you able to see what your payeeTypedName variable contains? Perhaps consider writing that variable to a form field so you can see the value (if you are running in IPFS - otherwise, an Alert works nicely).