Fixing another segfault brought about by the fix for lp:981829.