Addresses issue #1830, rendering of loading template throws unhandled exception

I took a stab at resolving the issue. I feel I have only a loose grasp on the solution. Wanted some feedback.