Fix EZP-22767: Added calls to ez_legacy_render_js and ez_legacy_render_css

Link: https://jira.ez.no/browse/EZP-22767

## Description
This is needed in order to have ezjscore requirements loaded when using legacy modules.

See related: https://github.com/ezsystems/ezpublish-kernel/pull/833

## Tests
Manual tests