Fix bug that crashes textbook browser #46

code that counts purchased questions did not take into account that the
user may not be signed in