#316 Adding a null instead of child causes NPE