Fixed error in is_main_query() called incorrectly.