Fix checking of Program context value in Mustache templates

* `<program>.context` is not null after update (because it's a required
  attribute on POST and PUT), so check `<program>.context.id` instead.
Merge pull request #679 from reciprocity/feature/fix-program-context-lookup

Fix checking of Program context value in Mustache templates