Fix error when visiting "cp/settings".
Merge pull request #5646 from openscholar/5645

Fix error when visiting "cp/settings".