Only apply pre_get_posts filters to the main query.