Fix probable bug when filtering for attributes that do not exist