Fix layout accidently being tried to replace OutputPage's main layout
(cherry picked from commit cf5a4c469d2c0fee277bcb60321f3879a2ef1b61)