Fix control flow for error message when template search path is empty.
Fix control flow for error message when template search path is empty.

hodgestar/genshi,mitchellrj/genshi,hodgestar/genshi,hodgestar/genshi,mitchellrj/genshi,hodgestar/genshi,mitchellrj/genshi,mitchellrj/genshi