TESB-13875 : fix problem of test of empty required if.