Fix error when switching page type to external
Pages using redirects_to_external don't have any elements so definition['elements'] returns nil