Skip expandtemplates if the page content is empty

Bug: 73529
Change-Id: If75d7fffab8b765699576e2954f5fb03c4af8ef2
Merge "Skip expandtemplates if the page content is empty"