Check entity can be loaded before creating snippet.

Check that the entity is loaded before creating a snippet. This prevents fatal errors if the index gets out of sync with the site.

We might want to log when that happens?

Merge request reports

Loading