guarding against displaying quiz info if the quiz has not been created for the assignment