WIKI-758: Delete related pages while relation is still active

Fix description: check if the related page removed