Fixes #3601: Fixed the bug that the refresh URL was not generated correctly by `Captcha`