As I said before that line of code was already added, it exists in our source code at Web/Components/PageNotFoundHttpModule.cs
Are you using our source code on your production site?
Are you building your own deployment package from source code?
I recommend you use our mojoportal-2-3-3-9-mssql-deploymentfiles.zip package which is pre-compiled and has no C# source code and is meant for production deployment. All the code is compiled into dlls in the /bin folder
I do not know about the web.config setting mentioned on the other thread, you might try it but I know nothing about it and was under the impression it was related to IIS 7.
Wish I could be more help but I've told you all I know.
Is your site at a public url where I could see the 404 behavior?