Output the proper template, when no content could be found. Working on #223.
Merging in change from 1.0.x branch, fixes #301.