PLF-4900 : Empty portal template doesn't work correctly