Fixed associate_posts to abort if no actual values were available to insert.