Fixes issue where the new search by hardware_id and old retrieve by Hanlon UUID
returned different results in the RESTful API (the former returned an unexpanded
object while the latter returned an expanded object). This commit makes both act
the same way that the retrieve by Hanlon UUID always worked (returning the
expanded object, not just a reference via URI to it).