fix profile page crashing.

when quiz is deleted, accessing nil object cause crashes.