I am having the same problem when viewing the detailed statistics of a quiz which has not been attempted by anybody yet. However, the Detailed Statistics page is displayed as normal and correctly once the quiz has been attempted by at least one user
I have Moodle 1.3.2 installed (I have even tried Moodle 1.4 dev but got the same problem!). Does anybody have any ideas about this?