returned null entity when the converted crate document is empty. udated
test case