Britney Spears’ first husband nearly canceled the singer’s wedding