Handle another case when finding object by id
raises an error whe importing