MHEngine: Fix Coverity 700723. Replace a static cast with a dynamic cast since we can't be sure that ParseProgram() will return an MHApplication pointer instead of an MHScene.