[JENKINS-23867] Fail gracefully the next time that the Jenkins UI changes

If neither the 'side-panel-content' element or the 'navigation' element is
found, return from the function. Otherwise an error would be thrown which
can break other behaviour in Jenkins.