Better error messaging when source file could not be found.

This raises a template error when in TEMPLATE_DEBUG mode to notify the developer that the source file could not be found. Otherwise os.stat gets called with None and that error is unclear what actually happened. When not in TEMPLATE_DEBUG the file is excluded.