[4.2] Fixed orHaving

`orHaving` does not work when used as first having condition.