`document.id(props.enforceChildrenOf)` could not be found, in which case this'll throw a null pointer exception when you call `.getElements`. You'll want to get that element and verify that it's there.