browse/content: Fix content path when not provided as query parameter
When browsing a legacy SWHID, a path field was included in the SWHID displayed in the view but it should not as the information about it is missing.
Closes #2427 (closed)
Depends on !324 (closed).
Migrated from D3224 (view on Phabricator)