Make current_student method more robust

There have been several cases where students drop their databases and
then can't figure out why their app is throwing errors in
current_student.