Catch rendering issues.

Catch and warn on rendering issues in top files. Closes #8799.
Merge pull request #11857 from cachedout/8799

Catch rendering issues.