[PTFM-9932] Move error handling logic from testServerConnection to checkForUpdates (to eliminate unnecessary findUsers call). Some formatting cleanup.