WP-3484: CTools should run detachBehaviors when refreshing a modal.