Made datapoint href redirect more robust

* Currently, the student snapshot template doesn't show submission details,
so clicking on a datapoint would cause javascript to throw an error for trying
to call .top on a null element.