fix profile page crashing.

when quiz was already deleted, accessing nil object cause crashes.