getCurrentRevision() now correctly handles connection errors. Closes #278.