Avoid an NPE. Fixes #209