fix use of undefined variable $summary in field formatter plugin