Hi,
I was able to fix the issue by modifying the static method called add_actions in media.php. The updated function is as follows.
/**
* Add actions.
*/
public static function add_actions() {
$args = func_get_args();
$field = reset( $args );
add_action( 'admin_footer', array( RWMB_Helpers_Field::get_class( $field ), 'print_templates' ) );
add_action( 'wp_footer', array( RWMB_Helpers_Field::get_class( $field ), 'print_templates' ) );
}
However, I'll be waiting for a confirmation from your side.
Thanks!