Add check for `target_sizes is None` in `post_process_image_guided_detection` for owlv2 (#31934)
* Add check for target_sizes is None in post_process_image_guided_detection
* Make sure Owlvit and Owlv2 in sync
* Fix incorrect indentation; add check for correct size of target_sizes