check entity == null while entity delete. close #96