Bug Fixes for narrative template application

Fixed a bug where student grade was not being applied to the search for
available templates for a particular subject and student grade.