Fix EZP-22767: Added calls to ez_legacy_render_js and ez_legacy_render_css

## 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