[JENKINS-21190] - Restored the j:if implementation according to comments from @jglich and @olivergondza in https://github.com/jenkinsci/jenkins/pull/1082

Signed-off-by: Oleg Nenashev <o.v.nenashev@gmail.com>