EZP-21143: Do not execute legacy pagelayout when using eZ5 one

Closes #437