clean up conditional comments in the DOM; conditionals now treat undefined variables as false; closes #617