Filter out entities with a null id