[FIXED JENKINS-25009] Catch the npe when creating a job in a parent (folder) that doesn't exist
cleanup, also fixed JENKINS-25009 for views
Merge branch 'JENKINS-25009'