From T56906#636445:
Why not treat references like the TOC and always have MediaWiki output them at the bottom of the page (or section when in preview mode in wikitext) unless a <references/> tag is present?
This would treat newbies slightly better with a first-approximation of a non-failure state, which means fewer nasty errors.