Select dropdown is not getting populating using datasource via Model class
I am working on a migration from 6.4 to 6.5. We have a basepage component which has a select dropdown for the field pageType. Please see the below screenshot.

The datasource node is responsible to populate the dropdown. The datasource node points to an html page which calls the Model class(As seen in above screenshot). Model class is populating the data based on language configuration.
Issue :
In AEM 6.4 local the dropdown is getting populated without any issue. But when I check the same in my AEM 6.5 local the dropdown is not getting populated. (Note : This is happening before as well as after doing the Coral 3 migration.)
Can someone please help me understand what might be the possible cause?