Notes API: prune_notes(): Prune notes that belong to non-existing objects