r26139: Based on a report by Theodor Chirana, don't assert() on invalid