Return first visit with non null snapshot by default
When no timestamp or visit id is provided to the get_origin_visit
function,
return the first visit with a non null snapshot instead of the first full
visit. Indeed, a partial visit can have a valid snapshot and should be not
filtered out.
Migrated from D3038 (view on Phabricator)