Fixes #2463 and includes a regression test
Merge pull request #2463 from embray/issue-2463

Astropy.io.fits and DS9