Fix a missed nil (fixes #846)