Issue 9450 - Avoid running semantic for assert if it's compiled out

http://d.puremagic.com/issues/show_bug.cgi?id=9450