Fix 500 error in search results

Plugin instances without "body" attributes were causing a 500 error on
certain search pages. This commit checks the plugins to see if they have
a 'body' attribute before trying to use it.