Use is_entries_ajax_request() instead of manually checking for the query var