Fix error when rendering in a context containing a 'fields' key.