Paying down debt is important, but there are times when putting extra money toward it could work against you.