Check if the #tmp table exists before creating it