Fix deprecation on Python 2.6 when raising some warnings in `io.votable`

This is a fix for part of https://github.com/astropy/astroquery/pull/276

This is a bugfix for something introduced in #1948, which is slated for 0.4, so it doesn't require a changelog entry.