Unhardcode loop range when creating captcha tasks
Fix annoying captcha rejection bug

Update task with the one that matches the ID. It happens when another
user rerolls a new task while you're reading or writing the comment.