* min/max optimization needs to check both operands of the if condition, even if no else-statement is passed, resolves #38249 git-svn-id: trunk@47843 -