Remove unnecessary checks for thread_plan_sp (we check for this at the top of the function.)