Fixed EZP-20859 Twig exception trying to generate path to legacy module ...

...with no views

Hello. This addition solved my issue. Let me know if it's ok for you