Correctly return origin_visit_status.type value everywhere
If the type is not present on an origin_visit_status, it should be computed from the origin_visit. There was some methods which only return the origin_visit_status value. It breaks the webapp mangling the type to empty value on the search result page.
Related to T3001
Migrated from D4960 (view on Phabricator)