Check if template fragments are of type mw:Transclusion before processing
An invalid assumption that template fragments connected using about attributes
are always template was causing js error.
Example: page=Кашира&from=ru, in its first paragraph there is a template
named Население that render the text 40 213. In this the reference
fragment is not a template and does not have template data.