Jennifer Lopez was frantic that she would have to share the stage with Shakira