Fix override of portlet_calendar.js when there are more layers than the actual theme.