FIXED
It seems there was a problem with the order which our plugin was calling the wp_register_script function.
We solved this problem adding the parameter $in_footer (true) on the wp_register_script function.
Here is our example:
wp_register_script(‘foo’, plugins_url(‘/foo.js’, __FILE__), array(‘thickbox’), 1, true);