[FIXED JENKINS-21639] Prevent creation of job named '.'.

(cherry picked from commit 780b38bc755028f4c4d72378896407a182bd5b30)