manage undefined return from deep.Chain.query