Fix HMVC controller executing in legacy templates