Add _stencil is nil test, add warning log.