Fixed UI bug when template tries to render a subject that does not exist