[REG2.066a] Issue 12390 - "has no effect in expression" diagnostic regression

https://d.puremagic.com/issues/show_bug.cgi?id=12390

When value discarding check on statements, the side-effect check should not be done deeply.