If you're planning to leverage the 0% capital gains bracket before year-end, surprise income could derail your strategy. Here's what investors need to know.