Check if pathname contains a path before splitting it. (#1343)
Check if pathname contains a path before splitting it. (#1343)

* Check if pathname contains a path before splitting it.

* Fix a linting issue.

Co-authored-by: Peter Hedenskog <4b8373d016f277527198385ba72fda0feb5da015@soulgalore.com>
tobli/browsertime,sitespeedio/browsertime,sitespeedio/browsertime,sitespeedio/browsertime,sitespeedio/browsertime