#660 Fixed error Liz found in freemarker formulaHasResult function