With the help of Kentico support, I chased down my problem. The code I am referencing was placed in the constructor, and before Kentico is finished its app initialization. I moved my code down to the OnInit() method instead, and the custom module started working fine. Takeaway here is don't put your code in the constructor. :)