Fixed XSRF token generation error in SDK devel console.

The error was caused by wrong manipulation with entity key id vs name.