[FIXED JENKINS-3539] Prevent empty file creation if left empty