Merge branch 'bschubert/cleanup-element-fetch' into 'master'

Small cleanups in `element._fetch`

See merge request BuildStream/buildstream!1768