Issue #2077003 by Wim Leers: Fixed tableselect.js uses Drupal object, but does not include it in its closure.