Adds default value for total_correct on quiz_logs to prevent error
where first correct answer was discounted.
Added regression test for quiz not registering correct answer on first question.
Merge pull request #2328 from rtibbles/quiz_log_fixes

Fix to prevent first correct answer on a quiz not being counted in the total_correct field