FIX: Don't try to exclude itself if it has no ID.

Previously it caused "id != NULL" which matches nothing always.