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