Fix context variable naming bug for profile fields

The template expected a different variable from what was passed into the
context. Fixed now.

Reported by @izidormatusov. Fixes #909