Fixed #20433: Extract catalog compilation code from javascript_catalog view.