[FIXES JENKINS-20616] replace target only if default view is set

then nested view can appear at the end of breadcrumb list
it fixes https://issues.jenkins-ci.org/browse/JENKINS-20616