#308 adding message in log about the code of nonexistent entity in db