Fixed NullPointer when DefaultModels contains no page template