Ensure border color is valid before setting as background. Fixes #583 tipsy-style tips.