Fix unpublished items showing up in search

Looks like the search is supposed to be getting more work anyway but here is a quick fix for #482