Fix issue 6893.

Explanation of fix is in http://d.puremagic.com/issues/show_bug.cgi?id=6893 comment #6.