Perforce: check for server availability before requesting a diff

References #131.