LPS-49418 SF regression - always evalated to true

Many thanks @topolik! :smiley: 

(cc @sergiogonzalez)