r369: bugfix - segfault caused by the last change

Sigh... Even the simplest change can lead to new bugs.