Don't fail on bzr tags with spaces or those that lack revision numbers

Fix for https://github.com/rtfd/readthedocs.org/issues/832