Fix EZP-21904: Fatal error after deleting the location of a single location object 

This PR resolves issue https://jira.ez.no/browse/EZP-21904

When Location was deleted reindex of its Content was triggered in all cases, which produced a fatal error when deleted Location was last Location of Content, meaning Content was deleted with it.

Tested manually.