Fixed issue in rendering of csrf token #4242