Fix to some hstudent bugs

This fix makes the behavior of the theme hook hstudent_results work
even when legacy/non-existent students are passed to it.

It also includes whitespace fixes to hdata