[Bug 27761] New: different behaviour for "if" conditions check