fixed a couple bugs in survey results

just a couple of fixes so that users can only view survey stats if they have previously completed the survey