Load pre_get_posts later and if there is a post type provided then set it to that one

In my case I provided the post type through search /?s=&post_type=my_cpt. Before this fix it would use the post type 'post' instead of my CPT